package com.github.permissiondog.cancanpbackend.dao;

import com.github.permissiondog.cancanpbackend.model.Application;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApplicationDao {
    void createTable();
    void insertApplication(Application application);
    Application getApplicationById(int id);
    List<Application> getApplicationsByApplicantId(int applicantId);
    List<Application> getApplicationsByApproverId(int approverId);
    void confirmApplication(@Param("id") int id, @Param("confirmed") boolean confirmed);
}
